package com.cqan.entity;

import java.util.Date;

public enum FieldType {
	S(String.class), I(Integer.class), L(Long.class), N(Double.class), D(Date.class), B(Boolean.class);

	private Class<?> clazz;

	private FieldType(Class<?> clazz) {
		this.clazz = clazz;
	}

	public Class<?> getValue() {
		return clazz;
	}
	
	public String getLabel(){
		switch (this) {
		case S:
			return S.toString();
		case I:
			return I.toString();
		case L:
			return L.toString();
		case N:
			return N.toString();
		case D:
			return D.toString();
		case B:
			return B.toString();
		}
		return null;
	}
}
